<template>
  <div class="homeBox">
    <img class="homeImg" src="../../images/Img/home.png" alt="" />
  </div>
</template>

<script setup>
import { ref } from "vue";
import router from "@/router"; // 确保引入了 Vue Router 并配置了路由对象

const showImage = ref(true);
let timer;
timer = setTimeout(() => {
  showImage.value = false;
  router.push("/header");
}, 3000);
</script>

<style lang="scss" scoped>
.homeBox {
  width: 100%;
  height: 100%;
  .homeImg {
    width: 100%;
    height: 95%;
  }
}
</style>